﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Menus
{
    public partial class fmMain : Form
    {
        public fmMain()
        {
            InitializeComponent();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            var formPlats = new fmPlatsList();
            formPlats.xPosForm = this.Left;
            formPlats.yPosForm = this.Top + this.Height + 5;
            formPlats.widthForm = this.Width;

            formPlats.Show();
        }

        private void toolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        /// <summary>administrationDesIngredientsToolStripMenuItem_Click
        /// administration des ingrédients
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void administrationDesIngredientsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fmIngredientList form = new fmIngredientList();
            form.ShowDialog();
        }

        /// <summary>administrationDesPlatsToolStripMenuItem_Click
        /// administration des plats
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void administrationDesPlatsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fmPlatsList form = new fmPlatsList();
            form.xPosForm = this.Left;
            form.yPosForm = this.Top + this.Height + 5;
            form.widthForm = this.Width;
            form.ShowDialog();

        }
    }
}
